﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Net;
using System.Web.UI.WebControls;

namespace AJAX_learning
{
	public partial class Req : System.Web.UI.Page
	{
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);

			if (!this.IsPostBack)
			{
				var t = Request.Browser.Browser;
				var cookie = new HttpCookie("LastBrowser")
				{
					Value = t,
					Expires = new DateTime(2011, 01, 01)
				};
				Response.Cookies.Set(cookie);
			}
		}
		public TextBox FirstNameTextBox
		{
			get { return txtFirstName; }
		}
	}
}